<script setup lang="ts" name="c-icon">
interface Props {
    name: string;
    classPrefix?: string;
    color?: string;
    size?: string;
    dot?: boolean;
    badge?: string;
}
const props = withDefaults(defineProps<Props>(), {
    name: '',
    classPrefix: 'icon',
    color: '#07C160',
    size: '20',
    dot: false,
    badge: ''
});
</script>

<template>
    <van-icon
        :class-prefix="props.classPrefix"
        :name="props.name"
        :color="props.color"
        :size="props.size"
        :dot="props.dot"
        :badge="props.badge"
    />
</template>
